package org.mybatis.dao;

import org.mybatis.model.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Dwyane-Wevil on 2017/7/4.
 */
@Component("UserDaoImpl")
public interface UserDao {
    public User getUser(User user);

    public void addUser(User user);

    public void updateUser(User user);

    public void deleteUser(int UserId);

    void insertByBatch(List<User> users);

    List<User> queryByPara(int id, String username);
}
